{include="header"}

{function="aw_showcase()"}
{function="marquee()"}
{function="uniform()"}
{function="fancybox"}

<div class ="wrapper" id = "home">

	<div class = "reservation-bar">
		<h2>{$e['online-reservation']}</h2>
		<a href = "reservation.html?type=1">> {$e['group-tour']}</a>
		<a href = "reservation.html?type=2">> {$e['water-park-ticket']}</a>
	</div>

	<div class="banner">
		<img src="images/graphic-ticket.png" style = "position:absolute;left:960px; top:15px;">
		{loop="all_promotion"}
		<div class="showcase-slide">
			<div class="showcase-content">
				<a href = "promotion.html?id={$value.id}"><img src = "{$value.banner}"/></a>
			</div>
		</div>
		{/loop}
	</div>

	<div class = "channel">
		<h2>{$e['last-channel']}</h2>
		<iframe width="325" height="200" src="http://www.youtube.com/embed/{$channel['yid']}" frameborder="0" allowfullscreen></iframe>
		<a href = "channel.html" class = "more">{$e['more-channel']} ></a>
	</div>

	<div class = "highlight">
		<img src="images/gimmick1.png" style = "position:absolute; top:-8px; left:440px;">
		<img src="images/gimmick2.png" style = "position:absolute; top:300px; left:565px;">
		<img src="images/gimmick3.png" style = "position:absolute; top:340px; left:20px;">
		<ul class = "tab">
			<li id = "tab1" class = "active">{$e['schedule']}</li>
			<li id = "tab2">{$e['promotion']}</li>
		</ul>

		<div class = "calendar display-content">
			<iframe src = "home-schedule.html" class = "iframe" frameborder = "0" scrolling = "0"></iframe>
		</div>

		<div class = "promotion display-content">
			<ul>
			{loop="all_promotion"}
				<li>
					<a href = "promotion.html?id={$value.id}">
					<img src = "{$value.thumb}" height = "100">
					<h3>{$value.promotion}</h3>
					<span>{$value.detail}</span>
					</a>
					<div class = "clear"></div>
				</li>
			{/loop}
			</ul>
		</div>
	</div>

	<div class = "clear"></div>

	<a href = "schedule.php" class = "more2">{$e['see-all-schedule']} ></a>

	<div class = "notice">
		<h2>{$e['important-notice']}</h2>
		<div class = "border-notice">
			<img src="images/quote1.png" class = "fl" style = "margin:-10px 0 0 -25px;">
			<div id = "marquee">{$notice}</div>
			<img src="images/quote2.png" class = "fr" style = "margin:5px -25px 0 0;">
		</div>
	</div>

</div>

<script>
$(document).ready(function(){

	$("#marquee").marquee({
		speed: 10000,
		gap: 50,
		delayBeforeStart: 0,
		direction: 'left',
		duplicated: true,
		pauseOnHover: true
	});

	$("#tab1").click(function(){
		$(".calendar").show();
		$(".promotion").hide();
		$("#tab2").removeClass("active");
		$(this).addClass("active");
	});

	$("#tab2").click(function(){
		$(".calendar").hide();
		$(".promotion").show();
		$("#tab1").removeClass("active");
		$(this).addClass("active");
	});

	$(".banner").awShowcase({
		content_width:			950,
		content_height:			330,
		auto:					true,
		arrows:					false,
		continuous:				true,
		btn_numbers:			true,
		pauseonover:			true,
		stoponclick:			false,
		transition:				'fade', 
		transition_delay:		500,
		transition_speed:		1000,
		show_caption:			'onload', 
		speed_change:			true, 
		custom_function:		null, 
		buttons:				true
	});
});
</script>

{include="footer"}